package com.cntaiping.workutil.prometheus;

import lombok.Data;

@Data
public class Metrics {
    private String name;

    private String num;
    private String code;
    private String costTime;
    private String httpStatus;
    private String result;
    private String msg;

    public Metrics(String name){
        this.name = name;
    }

    @Override
    public String toString() {
        return name + "{" +
                "num=\"" + num + "\"" +
                ",code=\"" + code + "\"" +
                ",costTime=\"" + costTime + "\"" +
                ",httpStatus=\"" + httpStatus + "\"" +
                ",msg=\"" + msg + "\"" +
                ","+
                '}';
    }
}
